import React, { Component } from 'react';
import './modal.css'
class Modal extends Component {
	constructor(props){
		super(props);
		this.state = {isOpen: false};
	}
	render(){
		const state = this.state, props = this.props;
		return 
			{state.isOpen &&
			(<div class="modal">
				<div>
					<div class="modal-close">×</div>
					{props.children}
				</div>
			</div>)}
		
	}
}

export default Modal;